package ${packageName}.dto;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
* ${comment}添加请求体
*/
@Data
public class ${className}AddDTO {
<#list fieldList as field>

    /**
    * ${field.remark}
    */
    <#if field.required>
        <#if field.javaType == "Integer" || field.javaType == "Double"
        ||field.javaType == "BigDecimal" ||field.javaType == "Float">
    @NotNull(message = "${field.remark}不能为空")

        <#else >
    @NotEmpty(message = "${field.remark}不能为空")
        </#if>
    </#if>
    private ${field.javaType} ${field.javaField};
</#list>

}
